package experiment6;

public class No_2 {
    public static void main(String []args){
        maque my_maque=new maque();
        ying my_ying=new ying();
        tuoniao my_tuoniao=new tuoniao();
        System.out.println(my_maque.wings+", "+my_maque.legs);
        System.out.println(my_tuoniao.height+", "+my_tuoniao.height);
        System.out.println(my_ying.fly_height+", "+my_ying.hunt);
    }
}

class Bird{
    public Bird(){

    }
    public String wings="这是翅膀";
    public String legs="这是腿";

    }


class maque extends Bird{
    public String age="5";
    public String weight="1kg";
}
class tuoniao extends Bird{
    public tuoniao(){

    }
    public String height="2m";
    public String run_speed="40km/s";
}

class ying extends Bird{
    public String hunt="开始捕食";
    public String fly_height="飞行高度1km";
}
